﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace LeEdu.MODEL
{
    [DisplayName("话题表")]
    public class Topic
    {
        [DisplayName("ID")]
        public int ID { get; set; }
        [DisplayName("子ID")]
        public int TId { get; set; }
        [DisplayName("标题")]
        public string TopicTitle { get; set; }
        [DisplayName("话题内容")]
        public string TopicContent { get; set; }
        [DisplayName("作者")]
        public Nullable<int> UserInfoId { get; set; }
        public virtual UserInfo UserInfo { get; set; }
        [DisplayName("话题时间")]
        public DateTime TopicTime { get; set; }
        [DisplayName("属性，0无状态，1已加精，2已置顶，3加精+置顶")]
        public int Attribute { get; set; }
        [DisplayName("回复")]
        public int Reply { get; set; }
        [DisplayName("查看")]
        public int See { get; set; }
        [DisplayName("课程")]
        public Nullable<int> CoursesID { get; set; }
        public virtual Courses course { set; get; }
    }
}
